package com.customer.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.mall.domain.User;
import com.customer.mall.domain.vo.UserVO;
import com.customer.mall.util.ResponseResult;

import javax.servlet.http.HttpSession;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BaiGGG
 * @since 2023-06-25
 */
public interface IUserService extends IService<User> {

    ResponseResult<User> login(String phone, String password, String verifyCode, HttpSession httpSession);

    ResponseResult<String> reg(String phone, String password1, String password2, String verifyCode, HttpSession httpSession);

    ResponseResult<String> logout(HttpSession session);

    ResponseResult<UserVO> isLogin(HttpSession session);

    UserVO getUserById(Long id);

    ResponseResult<Page<UserVO>> pageUser(Integer pageNum, Integer pageSize);

    ResponseResult<String> updateUser(User user);
}
